<?php

function mkdir_plus($dir) {
	if (is_dir($dir)) {
//@		echo $dir,'is dir<br />',"\n";
		return true;
	}
	elseif (mkdir_plus(dirname(rtrim($dir, '/')))) {
//@	 	echo 'try to create:',$dir,"<br />\n";
		return mkdir($dir, 0755);
	}
	else { return false; }
}
?>
